package com.bootcamp.s2_0922.ds._0924;

/**
 * @program: myClassCode
 * @description:
 * @author: Keyu Li
 * @create: 2021-09-24 10:08
 **/

public class Demo1_Generic {
    public static void main(String[] args) {
        S<String> s = new S<>();
        s.valueS = "son";
        s.valueP = "parent";
    }
}

class P<T>{
    T valueP;
}

class S<T> extends P<T>{
    T valueS;
}